# -*- coding:utf-8 -*-
from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
STOP_RENDERING = runtime.STOP_RENDERING
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 10
_modified_time = 1502186874.853
_enable_loop = True
_template_filename = 'F:/WorkS/demo3/framework/templates/home_application/homepage.html'
_template_uri = '/home_application/homepage.html'
_source_encoding = 'utf-8'
_exports = []


def render_body(context,**pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        STATIC_VERSION = context.get('STATIC_VERSION', UNDEFINED)
        managers = context.get('managers', UNDEFINED)
        STATIC_URL = context.get('STATIC_URL', UNDEFINED)
        __M_writer = context.writer()
        __M_writer(u'<!DOCTYPE html>\r\n<html xmlns="http://www.w3.org/1999/html">\r\n\r\n<head>\r\n    <meta charset="utf-8"/>\r\n    <meta http-equiv="X-UA-Compatible" content="IE=edge">\r\n    <meta name="viewport" content="width=device-width, initial-scale=1">\r\n    <title></title>\r\n    <!-- \u82e5\u60a8\u9700\u8981\u4f7f\u7528Kendo UI Professional\uff0c\u8bf7\u8054\u7cfb\u7248\u6743\u4eba\u83b7\u5f97\u5408\u6cd5\u7684\u6388\u6743\u6216\u8bb8\u53ef\u3002 -->\r\n    <!-- Bootstrap css -->\r\n    <link href="https://magicbox.bkclouds.cc/static_api/v3/assets/bootstrap-3.3.4/css/bootstrap.min.css"\r\n          rel="stylesheet">\r\n    <!-- kendo ui css -->\r\n    <link href="https://magicbox.bkclouds.cc/static_api/v3/assets/kendoui-2015.2.624/styles/kendo.common.min.css"\r\n          rel="stylesheet">\r\n    <link href="https://magicbox.bkclouds.cc/static_api/v3/assets/kendoui-2015.2.624/styles/kendo.default.min.css"\r\n          rel="stylesheet">\r\n    <!-- font-awesome -->\r\n    <link href="https://magicbox.bkclouds.cc/static_api/v3/assets/fontawesome/css/font-awesome.css" rel="stylesheet">\r\n    <!--\u84dd\u9cb8\u63d0\u4f9b\u7684\u516c\u7528\u6837\u5f0f\u5e93 -->\r\n    <link href="https://magicbox.bkclouds.cc/static_api/v3/bk/css/bk.css" rel="stylesheet">\r\n    <link href="https://magicbox.bkclouds.cc/static_api/v3/bk/css/bk_pack.css" rel="stylesheet">\r\n    <!-- \u5982\u679c\u8981\u4f7f\u7528Bootstrap\u7684js\u63d2\u4ef6\uff0c\u5fc5\u987b\u5148\u8c03\u5165jQuery -->\r\n    <script src="https://magicbox.bkclouds.cc/static_api/v3/assets/js/jquery-1.10.2.min.js"></script>\r\n    <!-- \u5305\u62ec\u6240\u6709bootstrap\u7684js\u63d2\u4ef6\u6216\u8005\u53ef\u4ee5\u6839\u636e\u9700\u8981\u4f7f\u7528\u7684js\u63d2\u4ef6\u8c03\u7528\u3000-->\r\n    <script src="https://magicbox.bkclouds.cc/static_api/v3/assets/echarts-2.0/echarts-all.js"></script>\r\n    <script src="https://magicbox.bkclouds.cc/static_api/v3/assets/bootstrap-3.3.4/js/bootstrap.min.js"></script>\r\n    <!-- \u5305\u62ec\u6240\u6709kendoui\u7684js\u63d2\u4ef6\u6216\u8005\u53ef\u4ee5\u6839\u636e\u9700\u8981\u4f7f\u7528\u7684js\u63d2\u4ef6\u8c03\u7528\u3000-->\r\n    <script src="https://magicbox.bkclouds.cc/static_api/v3/assets/kendoui-2015.2.624/js/kendo.all.min.js"></script>\r\n    <script src="https://magicbox.bkclouds.cc/static_api/v3/assets/echarts-2.0/echarts-all.js"></script>\r\n    <script src="https://magicbox.bkclouds.cc/static_api/v3/bk/js/bk.js"></script>\r\n    <!-- \u6570\u636e\u57cb\u70b9\u7edf\u8ba1 -->\r\n    <script src="https://magicbox.bkclouds.cc/static_api/analysis.js"></script>\r\n    <!-- \u4ee5\u4e0b\u4e24\u4e2a\u63d2\u4ef6\u7528\u4e8e\u5728IE8\u4ee5\u53ca\u4ee5\u4e0b\u7248\u672c\u6d4f\u89c8\u5668\u652f\u6301HTML5\u5143\u7d20\u548c\u5a92\u4f53\u67e5\u8be2\uff0c\u5982\u679c\u4e0d\u9700\u8981\u7528\u53ef\u4ee5\u79fb\u9664 -->\r\n    <!--[if lt IE 9]><script src="https://magicbox.bkclouds.cc/static_api/v3/assets/js/html5shiv.min.js"></script><script src="https://magicbox.bkclouds.cc/static_api/v3/assets/js/respond.min.js"></script>\r\n    <![endif]-->\r\n</head>\r\n\r\n<body class="bg-white" data-bg-color="bg-white">\r\n<div class="king-page-box">\r\n    <div class="king-layout1-header">\r\n        <nav class="">\r\n            <div style="overflow:hidden; z-index: inherit;" class="navbar king-horizontal-nav1  f14">\r\n                <div class="navbar-container">\r\n                    <div class="navbar-header pull-left">\r\n                        <a class="navbar-brand" href="javascript:;">\r\n                            <img src="https://magicbox.bkclouds.cc/static_api/v3/bk/images/logo.png" class="logo"> </a>\r\n                    </div>\r\n                    <ul class="nav navbar-nav pull-left m0">\r\n                        <li class="active"><a href="javascript:void(0);">\u9996\u9875</a></li>\r\n                    </ul>\r\n                    <div class="navbar-header pull-right">\r\n                        <ul class="nav">\r\n                            <li class="user-info">\r\n                                <a href="javascript:;">\r\n                                    <img class="img-rounded"\r\n                                         src="https://magicbox.bkclouds.cc/static_api/v3/components/horizontal_nav1/images/avatar.png">\r\n                                    <span>admin</span>\r\n                                </a>\r\n                            </li>\r\n                        </ul>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </nav>\r\n    </div>\r\n    <div class="king-layout1-main clearfix">\r\n        <!-- sidebar start -->\r\n        <div class="king-layout1-sidebar" style="width:216px;">\r\n            <nav style="height:100%;" class="   f14">\r\n                <div class="king-vertical-nav4">\r\n                    <div class="sidebar-inner">\r\n                        <ul class="navi">\r\n                            <li class="has_submenu current open active c-open">\r\n                                <a href="javascript:void(0);"> <i class="fa fa-gear "> </i>\r\n                                    <span>\u9996\u9875</span>\r\n                                    <span class="pull-right"><i class="fa fa-angle-down"></i></span>\r\n                                </a>\r\n                                <ul class="sub-menu" style="display: block;">\r\n                                    <li><a href="javascript:void(0);">\u9875\u9762\u5217\u8868<i class="fa fa-chevron-right pull-right"></i></a>\r\n                                    </li>\r\n                                    <li><a data-toggle="modal" data-target="#add">\u65b0\u5efa\u9875\u9762<i\r\n                                            class="fa fa-chevron-right pull-right"></i></a></li>\r\n                                    <!-- Button trigger modal -->\r\n                                </ul>\r\n                            </li>\r\n                        </ul>\r\n                    </div>\r\n                </div>\r\n            </nav>\r\n        </div>\r\n        <!-- sidebar end -->\r\n        <div class="modal fade bs-example-modal-sm" tabindex="-1" role="dialog" id="add"\r\n             aria-labelledby="mySmallModalLabel">\r\n            <div class="modal-dialog modal-sm" role="document">\r\n                <div class="modal-content">\r\n                    <form action="/add" method="post">\r\n                        <tr>\r\n                            <th>\u7f51\u7ad9\u540d\u79f0<input type="text" name="nname" style="margin-left: 10px; width:200px;"></th>\r\n                            </br>\r\n                            <th>\u8bbf\u95ee\u5730\u5740<input type="text" name="nurl" style="margin-left: 10px; width:200px;"></th>\r\n                            </br>\r\n                            <th><input type="submit" value="\u589e\u52a0"></th>\r\n                            </br>\r\n                        </tr>\r\n                    </form>\r\n                </div>\r\n            </div>\r\n        </div>\r\n\r\n\r\n        <!-- content start -->\r\n        <div class="king-content-wrap">\r\n            <div class="king-layout1-content" style="margin-left: 216px;">\r\n                <table class="table mb0 pr15 ranger-box2  ">\r\n                    <thead>\r\n                    <tr>\r\n                        <th style="width: 70px;">#</th>\r\n                        <th style="width: 15%;">\u7f51\u7ad9\u540d\u79f0</th>\r\n                        <th style="width: 15%;">\u8bbf\u95ee\u5730\u5740</th>\r\n                        <th>\u64cd\u4f5c</th>\r\n                    </tr>\r\n                    </thead>\r\n                    <tbody>\r\n')
        for m in managers :
            __M_writer(u'                    <tr>\r\n\r\n                        <td style="width: 70px;">')
            __M_writer(unicode(managers.index(m)+1))
            __M_writer(u'</td>\r\n                        <td style="width: 15%;">\r\n                            <a href="http://dev.bking.com:8000/proxy/')
            __M_writer(unicode(m['id']))
            __M_writer(u'/">')
            __M_writer(unicode(m['pname']))
            __M_writer(u'</a>\r\n                        </td>\r\n                        <td style="width: 15%;">')
            __M_writer(unicode(m['purl']))
            __M_writer(u'</td>\r\n                        <td>\r\n                            <button class="btn btn-xs btn-warning" myvalue="')
            __M_writer(unicode(m['id']))
            __M_writer(u'" data-toggle="modal"\r\n                                    data-target="#edit" onclick="edit_url(this)"><i class="glyphicon glyphicon-edit"></i></a> </button>\r\n                            <button class="btn btn-xs btn-danger"><a href="/del/')
            __M_writer(unicode(m['id']))
            __M_writer(u'"><i\r\n                                    class="glyphicon glyphicon-remove"></i> </a></button>\r\n                        </td>\r\n                    </tr>\r\n')
        __M_writer(u'                    </tbody>\r\n                </table>\r\n                <div id="edit" class="modal fade bs-example-modal-sm" tabindex="-1" role="dialog"\r\n                     aria-labelledby="mySmallModalLabel" style="height: ">\r\n                    <div class="modal-dialog modal-sm" role="document">\r\n                        <div class="modal-content">\r\n                            <form action="/edit/" method="post" id="form_edit">\r\n                                    \u7f51\u7ad9\u540d\u79f0<input type="text" name="nname" id="nname" style="margin-left: 10px;width:200px;">\r\n                                    </br>\r\n                                    \u8bbf\u95ee\u5730\u5740<input type="text" name="nurl" id="nurl" style="margin-left: 10px;width:200px;">\r\n                                    </br>\r\n                                    <input type="submit" value="\u4fdd\u5b58">\r\n                                    </br>\r\n                                </tr>\r\n                            </form>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <template id="header_tpl_15020886936542">\r\n                    <tr>\r\n                        <th style="width: 70px;">#index#</th>\r\n                        <th style="width: 15%;">#name#</th>\r\n                        <th style="width: 15%;">#position#</th>\r\n                        <th style="width: 15%;">#date#</th>\r\n                        <th style="width: 15%;">#type#</th>\r\n                        <th>\u64cd\u4f5c</th>\r\n                    </tr>\r\n                </template>\r\n                <template id="tpl_15020886936542">\r\n                    <tr>\r\n                        <td style="width: 70px;">#index#</td>\r\n                        <td style="width: 15%;">#name#</td>\r\n                        <td style="width: 15%;">#position#</td>\r\n                        <td style="width: 15%;">#date#</td>\r\n                        <td style="width: 15%;">#type#</td>\r\n                        <td>\r\n                            <button class="btn btn-xs btn-success"><i class="glyphicon glyphicon-ok"></i></button>\r\n                            <button class="btn btn-xs btn-warning"><i class="glyphicon glyphicon-edit"></i></button>\r\n                            <button class="btn btn-xs btn-danger"><i class="glyphicon glyphicon-remove"></i></button>\r\n                        </td>\r\n                    </tr>\r\n                </template>\r\n                <!-- \u8bbe\u7f6e\u9762\u677fEnd -->\r\n            </div>\r\n        </div>\r\n        <!-- content end -->\r\n    </div>\r\n</div>\r\n<script>\r\n    $(function () {\r\n        var li = $(\'.navi li\');\r\n        li.each(function () {\r\n            $(this).click(function () {\r\n                if ($(this).hasClass(\'c-open\')) {\r\n                    $(this).find(\'ul\').slideUp(350);\r\n                    $(this).removeClass(\'c-open\');\r\n                } else {\r\n                    $(this).find(\'ul\').slideDown(350);\r\n                    $(this).addClass(\'c-open\');\r\n                }\r\n            })\r\n        });\r\n    })\r\n</script>\r\n<script>\r\n    $(function () {\r\n        function renderTpl(str, cfg) {\r\n            var re = /(#(.+?)#)/g;\r\n\r\n            return str.replace(re, function () {\r\n                var val = cfg[arguments[2]] + \'\';\r\n                if (typeof val == \'undefined\') {\r\n                    val = \'\';\r\n                }\r\n                return val;\r\n            });\r\n\r\n        }\r\n    })\r\n</script>\r\n<script>\r\n    $(document).ready(function () {\r\n        $("#edit").modal("hide");\r\n    })\r\n\r\n    function edit_url(srcTag) {\r\n        var examId = $(srcTag).attr(\'myvalue\');\r\n        var fatherTr = $(srcTag).parents("tr");\r\n        var pname = $(fatherTr).children("td:eq(1)").children("a").text();\r\n        var purl = $(fatherTr).children("td:eq(2)").text();\r\n        $("#nname").val(pname);\r\n        $("#nurl").val(purl);\r\n        $("#form_edit").attr("action", "/edit/" + examId+"/");\r\n    }\r\n</script>\r\n\r\n</body>\r\n<script src="')
        __M_writer(unicode(STATIC_URL))
        __M_writer(u'js/settings.js?v=')
        __M_writer(unicode(STATIC_VERSION))
        __M_writer(u'" type="text/javascript"></script>\r\n\r\n</html>\r\n')
        return ''
    finally:
        context.caller_stack._pop_frame()


"""
__M_BEGIN_METADATA
{"source_encoding": "utf-8", "line_map": {"16": 0, "24": 1, "25": 125, "26": 126, "27": 128, "28": 128, "29": 130, "30": 130, "31": 130, "32": 130, "33": 132, "34": 132, "35": 134, "36": 134, "37": 136, "38": 136, "39": 141, "40": 238, "41": 238, "42": 238, "43": 238, "49": 43}, "uri": "/home_application/homepage.html", "filename": "F:/WorkS/demo3/framework/templates/home_application/homepage.html"}
__M_END_METADATA
"""
